
public class Car 
{
	private Person driver;
	private Person passenger;
	private String carType;
	
	public Car(Person driver, String carType)
	{
		this.driver = driver;
		this.carType = carType;
	}

	public Person getDriver() {
		return driver;
	}

	public void setDriver(Person driver) {
		this.driver = driver;
	}

	public String getCarType() {
		return carType;
	}

	public void setCarType(String carType) {
		this.carType = carType;
	}

	public Person getPassenger() {
		return passenger;
	}

	public void setPassenger(Person passenger) {
		this.passenger = passenger;
	}

}
